//vue/APP.vue
<template>
  <div>
    <h2 class="x">{{ message }}</h2>
    <button @click="btnClick">按钮</button>
    <h2>{{ name }}</h2>
  </div>
</template>

<script>
//npm i vue-loader@15.4.2 vue-template-compiler@2.5.21 --save-dev
export default {
  name: "App",
  data() {
    return {
      message: 'Hello Webapck',
      name: '张三'
    }
  },
  methods: {
    btnClick() {

    }
  }
}
</script>

<style>
.x {
  color: red;
}
</style>